package utils;

import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;

public class Configuration {
	
	private static final String IMG_FOLDER = "images";
	
	/**
	 * NULL_STREAM is used to disable debug message.
	 */
	@SuppressWarnings("unused")
	private static final OutputStream NULL_STREAM = new OutputStream() {
		@Override
		public void write(int arg0) throws IOException {			
		}
	};
	
	/**
	 * Some debug streams. Disable any of them by using NULL_STREAM (new PrintStream(NULL_STREAM)).
	 */
	public static final PrintStream net_debug = new PrintStream(System.out) ;
	public static final PrintStream file_debug = new PrintStream(System.out) ;
	public static final PrintStream gui_debug = new PrintStream(System.out) ;
	public static final PrintStream app_debug = new PrintStream(System.out) ;
	
	/**
	 * @return The image folder path
	 */
	public static String getImageFolder () {
		return IMG_FOLDER ;
	}
	
	private static final String RESSOURCE_FOLDER = "res" ;
	
	/**
	 * @return The resources folder path
	 */
	public static String getRessourceFolder () {
		return RESSOURCE_FOLDER ;
	}
	
}
